<?php
	define('JPATH_BASE', $_SERVER["DOCUMENT_ROOT"] );
	require_once(JPATH_BASE .'/libraries/defines.php' );
	require_once(JPATH_BASE .'/libraries/header.php' );
	require_once(JPATH_BASE. "/libraries/dao.php");
	require_once(JPATH_BASE. "/libraries/component.php");
	require_once(JPATH_BASE. "/libraries/helper.php");

	$category = $_REQUEST["category"];
	$pageIndex = $_REQUEST["pageIndex"];
	$com = ComponentFactory::getComponent("", $category);
	if(isset($category)){
		$results = $com->getRecords($pageIndex);
	} else {
		post("error.php", "errorMsg=出错了，您想浏览的分类不存在");
	}
?>